initial; extracted from flitbit/oops