rewrite gl / app initial