create initialize hooks