small fixes to Loader