current working copy from tools.ex