move signaling handler setup to main and add var to define message byte size