fixed more errors based on renjin api recommendations