move helpers into shared libraries