creating logs for powernap, including a bunch of fixes