reorganize code related to static file, reverse url, and its config