reintroduce checks for prototype validity