on deploy instead of custom event handler