fix hash, arrays etc