fixed incrementing variables
reading messages