various research related coding bits and pieces