fix wrong extension and make static