bug: creates duplicate resource...