trying to simplify to narrow down the problem (could be r connection on production server? would be weird since it works on the development machine...