add simple parsing for serializable class/custom type