Resource with namespace

Should close #303