standard input functionality added