adding osl_loop extension

Resubmitting osl_loop extension pull-request.
Taj.