(Promise based) Object middleware