Port validate

fixes #32