shared impl file for posix version scanning