using resource loader so class path is considered first

made required changes