+ added WAITING_FOR_WORKSTATION state
+ bugfix