Better extraction of ns form

Goal: not require class path at all.