isBinary
fixed replacement
clean comments