restore legacy compatibility