rewritten flip module for willie