handle empty lines and fix PRINT of ns bmk script