changed directory and pastek_core now read from standard input