--add needed methods to router and stats module, setting application
object from router