added loader. closes #7