added basic input detection