partial solution to weird configurations