moved code to boot.js and added first slave