deme ready code