added resources, critical fixes