handle multiple locks