fixed bug in local commands but setData nees more work