trying to implement file library