first part @ try&error
adding lib dir
removing some deprecated stuff