renamed globals to status