added method to bteAPI.cs