resolved issue with unable to searilize due to no paramterless constructor