added compatibility between previous versions