troublesome code moved to kuso-programming