save before the sleep
fix bug in makefile