app splited from server main, added login