handle cd to opt and run