consolidate generic loader