refactor configuration to get defaults from properties file. first step to be more module friendly