add sleep functionality. metadata editor improved