finish X commands
finish Y commands
finish Z commands
fix some bugs