trying to figure out how the hell this thing works