fix web code to work in Starman as well