add optional options to runCommand
replace link with prepare command. fixes #27