update the API a bit to work better with HTML apps