make opt from hooks