bugfixes, BOUNCE flag now works