a little hackey code in the direction of fixing serialsiation