refactoring
Array, InputStream parameter support for external functions