automation functions and libraries