wip - make sure module type is correctly parsed