added processing signals and clean_up functions, more customization