added dev_ prefix to dev tables
fixed segment issue