update to use stdin/stdout
fix for actions described with objects