script for debugging