convert resources to module items