file service implementation + test
some warnings avoided