removed dependency on flatland/useful