added proper rewrites
config mgmnt