bug fix - $.extend deep copy is now used