changes to init scripts. Only entity staff is working