add bricks class to client and server