works using config file now