beta version with config file