read settings from config file

instead of having it hardcoded in script