support for options in api hooks
debugging updtes