some misc programs for testing