fix pathes
fix argument order for insertAt