handles also ommited res file ending