gatway commands implemented