moved functions into own directory