fixes, add doctrine library, optimize class loader