first working version
better code which serves not only plain text
no message