implement threadless state management strategy