don't try to define method on server while working in client