merge some files

linking time becomes little faster
refactor