added sleep, dock acts weird