separate lib and src