cleaning up router file