fixed bugs in sever commands