one of many rework commits; use silex and twig