revise build rules for fcontext