added waiting and locking of kettle