Added backend support for bet & improved libs