this code is not nearly ready, revert and hold until sleep can be had