new barrier code, debug params, sound