change visibility of getLoader method to public