improvements - mvn resources are not files, should read from input stream