major bug, caused segfaults