dirname, sitename and appname are class variables, better helpers