increase memory limit of script to 512 MB