added some more utility functions, added a quarry function to strip.lua