use resource file for config