shared code for OOGASalad