added status function for GUI to call