moved functions to libraries/default