Add clay::apply_script* functions