modified task to work on console