add common code on server