attempt to serialize ser/deser closures but still doesn't work because of different closure variables apparently.