api for each scala version