change braindamaging usage of STL to something saner