add user class and some stubs