initial work for m-boundaries