use eval to replace ugly bash