added signal class, fixed signals sending