restore APC hook for register serializer, fix #24