refactored to be placed in sep dirs instead for ./configure