add config file functionality