fixed output and added autorun