implemented local and remote action