simplify marker code
expose marking functionality and document it