fix redeclaration problem
minor fix so it compiles
used require_once
force default registry directory and its creation
newline at end of file
use require_once