refactor system instruction to invocables