multiple fixes for travis compatibility and beginnings of resource function
multiple fixes for travis compatibility and beginnings of resource function