fixed config and added initial support for config files