add refs to stackoverflow code snippets to provide attribution