fixed backward compatibility to version 4.x