added queue change status
added invalid entity exception