adding state and detach
version bump