add dynamic pinscreen detection