now works with recursive loader