simplified implementation of save_args()