modified run for linux