move type class in subdirectory
correct require_once directives