changed pull to hook and getting the handler from the os args