everything is f*ed up i will probably have to rewrite filecaching.c from scratch , this however will be very good as I will also add many more features for the clients of the library