check state, proper poweroff, headless
PEP8