added script for main interaction