added implementation for alarm sys call. not tested yet