adding ability to configure from file