handler works from console