minor fix
method markPath now checks if there's a path to be marked
minor changes