refactor to use libexec instead of lib/cmd