fixes for R CMD check