prepare command