added run signal handling