avoid dup resource issues