reversed some of konamis thread lib