update handlers to use command and chdir instead of shell