first script for version and memory checking