boss.lua fix & other changes