loader.py fully functional