added parameter guards
added safety checks for invalid bookmark names