use script to commit key