fixed bundle issues with autoloading
further refactored for implementation with imagine bundle
further refactored for implementation with imagine bundle