need to improve compile libs so that it only looks at compilable files