prepare some stuff for url reverse