creating common functions and specific executables

possible detect symlink'd names and switch based on that