crack at exposing function