[feature] add constant support