copy and config the app