implement '@when' docblock tag and use it for `core download`