app init prototype