added infrastructure for use with pyinstaller