fixed getPathForResource and getAbsolutePath