forgot to add handler fnc to dynamic routes & added type switch algorythm