hook to rewrite schema path