added learning on all data and SIGINT handling