added fix to fot_library to avoid need of X running for making plots