move to error logging
get twig working
clean up