fix loader, add version flag