better way to check for command existance