add the based behaviour of CodeExpander for Bloc