changes to handle open/closed transitions