added console statements to track loading