add handler init code