updated to compatiblity with bengine at version 0.3