new way to communicate with bash