-added api chain limit (default 5)
-updating chain so it can 'return' at any point in chain