moved scripts into lib dir