added config file functionality