updated to fit with Bengine 0.3+