make it compatible with old code