moved tail to dynamic and added dynamic to handled routes