script for server