nbs: move to sh files