prepared for deployment. added base_dir to libraries.py