another take on paths for nnscripts