store reference to mimetype_registry on pt utility
minor style cleanups