add script for server side