preparation for server