update interface to validate keys better, more flexible on packets