add types and specs
handler fun can have 3 and 5 arity and get more arguments in later case: cowboy req and handler options