post_setup and pre_cleanup now module functions (#69)