move front controllers
rewrite file controller
define correct stream for file controller