ugly, but it does the job for now: defining commands for printing references