fixes for R CMD CHECK