added libraries and base script