fix static path and support plugins