server fixes: layer activation was wrong and empty messages are now ignored