added event to catch --no-dev