some corretions in app main script