server script entry point