removed duplicate code, requiring file instead

It seems the code is duplicated, so required a file to reuse ack method here.