added depth script to get current depth