fixed wait in kwargs bug

added action to query