made factory retrieve resource from server