changing bagpath to workspace