fix relative imports
added simple config file support