see https://github.com/SF-WDI-LABS/shared_modules/pull/16#issuecomment-198971280
see #16 (comment)