0.1: merge configs into configs.js

add global ctrler