simplified strucutre, moved common.go to app.go