make it work statically