fixed prefork cycles issue, removed unnecessary state calcs from prepare