fixed table handling
make tables persistent
add BGP support