add env for plugin config
fix early return
cleanup discarded command message
fix function declaration, reverted
fix typo
fix extract urls