bugfix, append functions, etc