small code refresh - trailing spaces & missing require in standalone mode