fix resources path and permissions