renamed applied_for to applicable_for for clarity
fine tuning of applying hooks