added unary function support
moved to own codefile