adds call hanging funtn in wrapper