moar rewrites for file extension sake