added option of multiple resources