rebuild to static