implemented tail -f functionality