added useful methods on the snippet params class