added scripts etc. for testing optimizations