add functionality of init_srcs and dispSrcs.