fixed bugs in backendless implementation