added messages local var for messages to be pushed to