improving interface validation