improve command completion
add tests and fixes for SETTIGNS frame