changed _.defaults to _.extend