improve server scripts

A script should be run as its owner in a whole