add exec function on server side