working bash add, not yet user friendly