added support for chains and jumping