move import to rest resource