Buildchain works for chains of length 1, added keymgr