enum for client stages
echo messages on error