fix promise calls to pass arguments correctly.