moving to config file - still have a bug....