added prepare method to module