added args output and fixed relay state