trying again to get realpath to work