changed to read from configuration file