bug fixes and improvments to interfaces creation