code cleanup. added config file path startup flag