moved lot of configuration functions to parser