restructure to ordinary django