own method for finding file
using haxe3 map syntax