organize pre hooks