move R includes in a separate file
add context low level stuff not exported by R