move up resume() and some troubleshooting