make optional to wait at the end of the input
optimize for single process mode
add forwarding notification