implement app starting