main: set up shim, config require
init: app logic