build loader callbacks in a promise like fashion (.success and .error in chain)