add setCurrent accessor to realize dynamic value update