some changes to find issue with JNA 4