resources callback bugfixes