getting input values in a different way (to be compatible with famous wrapper)