some lua scripts for bn