added libraries in ls.cpp