add extension and server dir