handle empty resources