BUGFIX: old loop on non-existant variable
BUGFIX: path_info not guaranteed to return an extension value
BUGFIX? Correct include paths