restructure file and make dev/prod configurations