add option not to serialize an object in callback

fixes #67