utility for overriding arguments received by a function at runtime