basic #resolve ... not tested very well