continued dynamic factory. added config file reader