better user class marhsalling