added profiler for foreign.py stata reader