refactored input into manager singleton.