fixed bug
fixed chaining
improved migrations