testing
removed unneeded parameter in query
made error emitting only once per entity after timeout, needed before entity deleting functionality is introduced