added program flow for cc3k