found a bug in mac os, will test it in linux tomorrow