fixes for resize and util.takes_args