separate client and server part. remove ejb.