connect Hook function that can work as a robust to parser-execute self-defined script