updated bundler - changes processing depending on file type