working versiont that can get input char from coffee core