have to export index.R in order to get options working right