refactor config
config
rename flag
inherit from process
update signal handling