added script for prey occurence and saved env and history