stl generation fixed, thanks to Gary Hodgson