extracts commands