convert things to module format