handle direct call (the flag should go in front-end)