loads r files in init