added dynamic reading from the controllers directory to extensions, and added filename parameter to logger