added support of multiple handlers #4