added initial support for input sequences