internalize ready function