How to stay ahead of a layoff