added status functionality