got all the required info from inspect; call the function below (this was cleaner than trying to do this through default params, and allowed me to leave that function relatively untouched.