NEST: compilable version, not really working yet