added config output and fixed error in action handling