timer and alarm functionality improved