add ability to read from config file