added space switch tool fixed bugs in pbman