new version of loader (uncomplete)