add resourse, fix bug with path