api for Alvin