added last_bytes signal
added pulse detector for enable signal