publish codes fixed and discover