messenging implemented, now runs all queries