added configuration file support!