changed commands to use item identifiers
correction for id item ids
added logic to handle input commands