fixed working with structures and update remote