updated RAM checking
added custom facts dependency