added android support and fixed minor bug with best