NL: using old pathtastic code as a starting point