fixes specs and module nesting