made better stub for client