made a module, put common methods in it.