modified eject command