finish the main part of server in alp, test left