fixed htmlbackend api simulation