support for lua 5.2 - remove loop dependencies