enh: added kink pattern and some validation functions