change to static lib and remove resource dir