added support for the listEntitiesWithAttributes command
use string switch instead of private enum