Fixed fail
Improved chains api